home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / gds.h < prev    next >
Encoding:
Text File  |  1993-07-08  |  3.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. /*
  5.  *
  6.  *    GDS access library.
  7.  *    version 1.20.
  8.  *
  9.  *    哇内 進 ( Wonder's Dream )
  10.  *
  11.  */
  12.  
  13.  
  14.  
  15. /***                        ***/
  16. /***        私的呼出しル-チン        ***/
  17. /***        private call routine        ***/
  18. /***                        ***/
  19.  
  20.  
  21.  
  22. unsigned char *GDS_append(unsigned char *wp,unsigned int size);
  23.  
  24.  
  25.  
  26. /***                        ***/
  27. /***        割り込みオペレ-ション        ***/
  28. /***        interrupt operation        ***/
  29. /***                        ***/
  30.  
  31.  
  32.  
  33. unsigned char *GDS_init(unsigned int size);
  34.  
  35. unsigned int GDS_palette(unsigned int color,unsigned char red,unsigned char green,unsigned char blue);
  36.  
  37. unsigned int GDS_all_clear(void);
  38.  
  39. unsigned char *GDS_get_block(signed int x1,signed int y1,signed int x2,signed int y2,unsigned char page);
  40.  
  41. unsigned int GDS_put_block(unsigned char *data,signed int x1,signed int y1,signed int x2,signed int y2,unsigned char page,unsigned char mode);
  42.  
  43. unsigned int GDS_move_block(signed int x1,signed int y1,signed int x2,signed int y2,signed int x3,signed int y3,unsigned char src_page,unsigned char dest_page,unsigned char mode);
  44.  
  45. unsigned int GDS_part_clear(signed int x1,signed int y1,signed int x2,signed int y2,unsigned char page);
  46.  
  47. unsigned int GDS_write_page(unsigned char page);
  48.  
  49. unsigned int GDS_display_page(unsigned char page);
  50.  
  51. unsigned int GDS_display(unsigned char *wp);
  52.  
  53.  
  54.  
  55. /***                        ***/
  56. /***        セッティングオペレ-ション    ***/
  57. /***        setting operation        ***/
  58. /***                        ***/
  59.  
  60.  
  61.  
  62. void GDS_clip_frame(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2);
  63.  
  64. void GDS_clip_mode(unsigned char *wp,unsigned char mode);
  65.  
  66. void GDS_line(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2);
  67.  
  68. void GDS_point(unsigned char *wp,signed int x1,signed int y1);
  69.  
  70. void GDS_paint(unsigned char *wp,signed int x1,signed int y1,unsigned int color);
  71.  
  72. void GDS_rectangle(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2);
  73.  
  74. void GDS_circle(unsigned char *wp,signed int x1,signed int y1,signed int r);
  75.  
  76. void GDS_arc_circle(unsigned char *wp,signed int x1,signed int y1,signed int sx,signed int sy,signed int ex,signed int ey,signed int r);
  77.  
  78. void GDS_fan_circle(unsigned char *wp,signed int x1,signed int y1,signed int sx,signed int sy,signed int ex,signed int ey,signed int r);
  79.  
  80. void GDS_ellipse(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2);
  81.  
  82. void GDS_arc_ellipse(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2,float srad,float erad);
  83.  
  84. void GDS_fan_ellipse(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2,float srad,float erad);
  85.  
  86. void GDS_line_style(unsigned char *wp,signed char style);
  87.  
  88. void GDS_line_color(unsigned char *wp,unsigned int color);
  89.  
  90. void GDS_point_color(unsigned char *wp,unsigned int color);
  91.  
  92. void GDS_paint_mode(unsigned char *wp,unsigned char mode);
  93.  
  94. void GDS_paint_color(unsigned char *wp,unsigned int color);
  95.  
  96. void GDS_hatching_style(unsigned char *wp,signed char style);
  97.  
  98. void GDS_tyle_style(unsigned char *wp,signed char style);
  99.  
  100. void GDS_boundary_style(unsigned char *wp,unsigned char style);
  101.  
  102. void GDS_boundary_color(unsigned char *wp,unsigned int color);
  103.  
  104. void GDS_boundary_mode(unsigned char *wp,unsigned char mode);
  105.  
  106. void GDS_draw_mode(unsigned char *wp,unsigned char mode);
  107.  
  108.  
  109.  
  110. /***                        ***/
  111. /***        マクロ定義            ***/
  112. /***        macro definition        ***/
  113. /***                        ***/
  114.  
  115.  
  116.  
  117. #define        PRESET        0
  118. #define        AND        1
  119. #define        PSET        3
  120. #define        XOR        6
  121. #define        OR        7
  122. #define        NOT        12
  123.  
  124. #define        SCREEN        0
  125. #define        CLIP        1
  126. #define        VIEWPORT    2
  127.  
  128. #define        N        0
  129. #define        BF        1
  130. #define        TF        2
  131. #define        HF        3
  132.  
  133.